﻿function $(obj) {
	return document.getElementById(obj);
}

function AddOnloadEvent(func) {
	if (window.onload != null) {
		var rawOnload = window.onload;
		window.onload = function(e) {
			rawOnload(e);
			func();
		}
	} else {
		window.onload = func;
	}
}